Optimal. Leaf size=313 \[ -\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} \left (10 a^2 B+3 a b (7 A-15 C)-15 b^2 B\right )}{15 d}+\frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \left (a^3 B+3 a^2 b (A+3 C)+9 a b^2 B+b^3 (3 A+C)\right )}{3 d}+\frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \left (a^3 (3 A+5 C)+15 a^2 b B+15 a b^2 (A-C)-5 b^3 B\right )}{5 d}-\frac {2 b^2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) (5 a B+9 A b-5 b C)}{15 d}+\frac {2 (5 a B+6 A b) \sin (c+d x) (a+b \sec (c+d x))^2}{15 d \sqrt {\sec (c+d x)}}+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^3}{5 d \sec ^{\frac {3}{2}}(c+d x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.83, antiderivative size = 313, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 7, integrand size = 43, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.163, Rules used = {4094, 4076, 4047, 3771, 2641, 4046, 2639} \[ -\frac {2 b \sin (c+d x) \sqrt {\sec (c+d x)} \left (10 a^2 B+3 a b (7 A-15 C)-15 b^2 B\right )}{15 d}+\frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \left (3 a^2 b (A+3 C)+a^3 B+9 a b^2 B+b^3 (3 A+C)\right )}{3 d}+\frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \left (a^3 (3 A+5 C)+15 a^2 b B+15 a b^2 (A-C)-5 b^3 B\right )}{5 d}-\frac {2 b^2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) (5 a B+9 A b-5 b C)}{15 d}+\frac {2 (5 a B+6 A b) \sin (c+d x) (a+b \sec (c+d x))^2}{15 d \sqrt {\sec (c+d x)}}+\frac {2 A \sin (c+d x) (a+b \sec (c+d x))^3}{5 d \sec ^{\frac {3}{2}}(c+d x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 3771
Rule 4046
Rule 4047
Rule 4076
Rule 4094
Rubi steps
\begin {align*} \int \frac {(a+b \sec (c+d x))^3 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {5}{2}}(c+d x)} \, dx &=\frac {2 A (a+b \sec (c+d x))^3 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2}{5} \int \frac {(a+b \sec (c+d x))^2 \left (\frac {1}{2} (6 A b+5 a B)+\frac {1}{2} (3 a A+5 b B+5 a C) \sec (c+d x)-\frac {1}{2} b (3 A-5 C) \sec ^2(c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {2 (6 A b+5 a B) (a+b \sec (c+d x))^2 \sin (c+d x)}{15 d \sqrt {\sec (c+d x)}}+\frac {2 A (a+b \sec (c+d x))^3 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {4}{15} \int \frac {(a+b \sec (c+d x)) \left (\frac {1}{4} \left (24 A b^2+35 a b B+3 a^2 (3 A+5 C)\right )+\frac {1}{4} \left (5 a^2 B+15 b^2 B+6 a b (A+5 C)\right ) \sec (c+d x)-\frac {3}{4} b (9 A b+5 a B-5 b C) \sec ^2(c+d x)\right )}{\sqrt {\sec (c+d x)}} \, dx\\ &=-\frac {2 b^2 (9 A b+5 a B-5 b C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d}+\frac {2 (6 A b+5 a B) (a+b \sec (c+d x))^2 \sin (c+d x)}{15 d \sqrt {\sec (c+d x)}}+\frac {2 A (a+b \sec (c+d x))^3 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {8}{45} \int \frac {\frac {3}{8} a \left (24 A b^2+35 a b B+3 a^2 (3 A+5 C)\right )+\frac {15}{8} \left (a^3 B+9 a b^2 B+b^3 (3 A+C)+3 a^2 b (A+3 C)\right ) \sec (c+d x)-\frac {3}{8} b \left (21 a A b+10 a^2 B-15 b^2 B-45 a b C\right ) \sec ^2(c+d x)}{\sqrt {\sec (c+d x)}} \, dx\\ &=-\frac {2 b^2 (9 A b+5 a B-5 b C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d}+\frac {2 (6 A b+5 a B) (a+b \sec (c+d x))^2 \sin (c+d x)}{15 d \sqrt {\sec (c+d x)}}+\frac {2 A (a+b \sec (c+d x))^3 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {8}{45} \int \frac {\frac {3}{8} a \left (24 A b^2+35 a b B+3 a^2 (3 A+5 C)\right )-\frac {3}{8} b \left (21 a A b+10 a^2 B-15 b^2 B-45 a b C\right ) \sec ^2(c+d x)}{\sqrt {\sec (c+d x)}} \, dx+\frac {1}{3} \left (a^3 B+9 a b^2 B+b^3 (3 A+C)+3 a^2 b (A+3 C)\right ) \int \sqrt {\sec (c+d x)} \, dx\\ &=-\frac {2 b \left (10 a^2 B-15 b^2 B+3 a b (7 A-15 C)\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d}-\frac {2 b^2 (9 A b+5 a B-5 b C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d}+\frac {2 (6 A b+5 a B) (a+b \sec (c+d x))^2 \sin (c+d x)}{15 d \sqrt {\sec (c+d x)}}+\frac {2 A (a+b \sec (c+d x))^3 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {1}{5} \left (15 a^2 b B-5 b^3 B+15 a b^2 (A-C)+a^3 (3 A+5 C)\right ) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx+\frac {1}{3} \left (\left (a^3 B+9 a b^2 B+b^3 (3 A+C)+3 a^2 b (A+3 C)\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx\\ &=\frac {2 \left (a^3 B+9 a b^2 B+b^3 (3 A+C)+3 a^2 b (A+3 C)\right ) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{3 d}-\frac {2 b \left (10 a^2 B-15 b^2 B+3 a b (7 A-15 C)\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d}-\frac {2 b^2 (9 A b+5 a B-5 b C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d}+\frac {2 (6 A b+5 a B) (a+b \sec (c+d x))^2 \sin (c+d x)}{15 d \sqrt {\sec (c+d x)}}+\frac {2 A (a+b \sec (c+d x))^3 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {1}{5} \left (\left (15 a^2 b B-5 b^3 B+15 a b^2 (A-C)+a^3 (3 A+5 C)\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx\\ &=\frac {2 \left (15 a^2 b B-5 b^3 B+15 a b^2 (A-C)+a^3 (3 A+5 C)\right ) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {2 \left (a^3 B+9 a b^2 B+b^3 (3 A+C)+3 a^2 b (A+3 C)\right ) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{3 d}-\frac {2 b \left (10 a^2 B-15 b^2 B+3 a b (7 A-15 C)\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d}-\frac {2 b^2 (9 A b+5 a B-5 b C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d}+\frac {2 (6 A b+5 a B) (a+b \sec (c+d x))^2 \sin (c+d x)}{15 d \sqrt {\sec (c+d x)}}+\frac {2 A (a+b \sec (c+d x))^3 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 2.78, size = 295, normalized size = 0.94 \[ \frac {(a+b \sec (c+d x))^3 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \left (3 a^3 A \sin (c+d x)+3 a^3 A \sin (3 (c+d x))+10 a^3 B \sin (2 (c+d x))+30 a^2 A b \sin (2 (c+d x))+20 \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \left (a^3 B+3 a^2 b (A+3 C)+9 a b^2 B+b^3 (3 A+C)\right )+12 \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \left (a^3 (3 A+5 C)+15 a^2 b B+15 a b^2 (A-C)-5 b^3 B\right )+180 a b^2 C \sin (c+d x)+60 b^3 B \sin (c+d x)+20 b^3 C \tan (c+d x)\right )}{15 d \sec ^{\frac {9}{2}}(c+d x) (a \cos (c+d x)+b)^3 (A \cos (2 (c+d x))+A+2 B \cos (c+d x)+2 C)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.69, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {C b^{3} \sec \left (d x + c\right )^{5} + {\left (3 \, C a b^{2} + B b^{3}\right )} \sec \left (d x + c\right )^{4} + A a^{3} + {\left (3 \, C a^{2} b + 3 \, B a b^{2} + A b^{3}\right )} \sec \left (d x + c\right )^{3} + {\left (C a^{3} + 3 \, B a^{2} b + 3 \, A a b^{2}\right )} \sec \left (d x + c\right )^{2} + {\left (B a^{3} + 3 \, A a^{2} b\right )} \sec \left (d x + c\right )}{\sec \left (d x + c\right )^{\frac {5}{2}}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} {\left (b \sec \left (d x + c\right ) + a\right )}^{3}}{\sec \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 16.69, size = 1837, normalized size = 5.87 \[ \text {Expression too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^3\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )}{{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (a + b \sec {\left (c + d x \right )}\right )^{3} \left (A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}\right )}{\sec ^{\frac {5}{2}}{\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________